package org.dxy.domain.event.mbom;

import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * MBOM发布事件
 * @author dxy
 * @createTime 2025/9/10
 */
public record MBOMReleasedEvent(
    /** MBOM ID */
    Long mbomId,
    /** 版本号 */
    String version,
    /** 产品ID */
    Long productId
) implements DomainEvent {
    
    @Override
    public Long aggregateId() {
        return mbomId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.MBOM.getKey();
    }
    
    @Override
    public String eventType() {
        return MBOMEventTypeEnum.RELEASED.getKey();
    }
}